<template>
<view>
<template name="regions">
    <!-- 选择地址弹框  -->
    <view :hidden="!regions.showRegionsModal">
        <view class="cover-layer" @tap="closeRegionsModal"></view>
        <view class="regions">
            <view v-for="(item, index) in regions.regions" :key="index" class="region" :data-id="item.id" :data-name="item.name" @tap="openRegionsModal">{{item.name}}</view>
        </view>
    </view>
</template>
</view>
</template>

<style>
/* 区域选择弹框 */
.regions{
    z-index: 999;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 100rpx;
    overflow-x: hidden;
    font-size: 28rpx;
    color: #afafaf;
    background-color: white;
    padding: 0 25rpx;
}
.region{
    line-height: 84rpx;
    border-bottom: 1rpx solid #f3f3f3;
}
</style>